<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="__SDK_URL__"></script>
    <link rel="stylesheet" href="xterm.css">
    <link rel="stylesheet" href="normalize.css">
    <link rel="stylesheet" href="style.css">
    <script src="config.js"></script>
    <script src="bundle.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', async () => {
            // Wait for the SDK to load (with timeout)
            let attempts = 0;
            const maxAttempts = 100; // 5 seconds max
            while (typeof puter === 'undefined' && attempts < maxAttempts) {
                await new Promise(resolve => setTimeout(resolve, 50));
                attempts++;
            }
            if (typeof puter === 'undefined') {
                console.error('Puter SDK failed to load');
                return;
            }
            main_term();
        });
    </script>
</head>

<body>
</body>

</html>